package lab_09.task2.com.acme;

public class Bank {
	static protected final int MAX_CLIENTS = 10;
	Client [] clients = new Client [MAX_CLIENTS];
	int number = 0; //number of clients
	
	public Client addClient(Gender sex, String name, double balance) {
		if (number >= MAX_CLIENTS) {
			return null; //maximum number of clients is reached
		}
		Client client = new Client(sex, name, balance);
		clients[number] = client;
		number++;
		return  client;		
	}
	
}
